package phapp.model.barapp;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import javacommon.base.BaseEntity;


/**
 * Title: tc_tjfirms_info 数据类 POJO
 * Description: DAO层映射到数据类,页面封装数据映射到数据类
 * Copyright: Copyright (c) 2014-10
 * Company:
 *
 * @author you name
 * @version 1.0
*/

public class Tjfirms extends BaseEntity {
   
   //date formats
   
   //columns START
   /**序列*/
   private java.lang.Integer id;
   /**类型:1关于我们,2联系我们,3其它*/
   private java.lang.Integer type;
   /**图片*/
   private java.lang.String url;
   /**内容*/
   private java.lang.String content;
   
   private java.util.ArrayList idList;
   //columns END

	public Tjfirms(){
	}

	public Tjfirms(
		java.lang.Integer id
	){
		this.id = id;
	}

   public void setId(java.lang.Integer value) {
      this.id = value;
   }
   
   public java.lang.Integer getId() {
      return this.id;
   }
   public void setType(java.lang.Integer value) {
      this.type = value;
   }
   
   public java.lang.Integer getType() {
      return this.type;
   }
   public void setUrl(java.lang.String value) {
      this.url = value;
   }
   
   public java.lang.String getUrl() {
      return this.url;
   }
   public void setContent(java.lang.String value) {
      this.content = value;
   }
   
   public java.lang.String getContent() {
      return this.content;
   }

   public java.util.ArrayList getIdList() {
      return idList;
   }

   public void setIdList(java.util.ArrayList idList) {
      this.idList = idList;
   }

    /**手动增加属性后,toString,hashCode,equals都要修改*/
   public String toString() {
      return new ToStringBuilder(this)
         .append("Id",getId())
         .append("Type",getType())
         .append("Url",getUrl())
         .append("Content",getContent())
         .toString();
   }
   
   public int hashCode() {
      return new HashCodeBuilder()
         .append(getId())
         .append(getType())
         .append(getUrl())
         .append(getContent())
         .toHashCode();
   }
   
   public boolean equals(Object obj) {
      if(obj instanceof Tjfirms == false) return false;
      if(this == obj) return true;
      Tjfirms other = (Tjfirms)obj;
      return new EqualsBuilder()
         .append(getId(),other.getId())
         .append(getType(),other.getType())
         .append(getUrl(),other.getUrl())
         .append(getContent(),other.getContent())
         .isEquals();
   }
}

